home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / AMIGA / AMICUS / AMICUS15.ADF / C / FM / THINGS.H < prev    next >
C/C++ Source or Header  |  1988-04-20  |  1KB  |  44 lines

  1. /*  :ts=8 bk=0
  2.  * Lotsa defines and a few global externals.
  3.  */
  4.  
  5. #define    REV        0L
  6. #define BLOCKSIZE    TD_SECTOR
  7. #define NUMBLOCKS    (NUMCYLS * NUMHEADS * NUMSECS)
  8. #define ROOTBLOCK    (NUMBLOCKS / 2)
  9. #define BITMAPINDEX    79
  10. #define NUMLONGS    (NUMBLOCKS / 32)
  11. #define XX        6L
  12. #define    YY        5L
  13. #define XOFF        30L
  14. #define YOFF        25L
  15. #define BRKOVER        (NUMSECS * YY + YOFF)
  16. #define SEP        6
  17. #define LABEL_Y        (2*NUMSECS*YY+SEP+YOFF+10)
  18. #define ever        (;;)
  19.  
  20. /*    Offsets into interesting fields in disk blocks    */
  21. #define SIZE        (BLOCKSIZE/4)
  22. #define NAME        (SIZE-20)
  23. #define HASHCHAIN    (SIZE-4)
  24. #define EXTENSION    (SIZE-2)
  25. #define TYPE        0
  26. #define HEADER_KEY    1
  27. #define SECONDARY_TYPE    (SIZE-1)
  28. #define DIR_HASHTAB    6
  29. #define FH_BLOCKLIST    (SIZE-51)
  30. #define FH_ENDLIST    6
  31.  
  32. /*    Type definitions (coerced from the DOS using DISKED)    */
  33. #define T_SHORT        2
  34. #define T_DATA        8
  35. #define T_LIST        16
  36. #define ST_ROOT        1
  37. #define ST_DIR        2
  38. #define ST_FILE        -3
  39.  
  40.  
  41. extern void    *OpenLibrary(), *OpenWindow(), *AllocMem(), *Lock(), *Info(),
  42.         *CreatePort(), *CreateExtIO(), *GetMsg(), *index();
  43. extern long    TextLength(), OpenDevice(), ReadPixel();
  44.